<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>变大</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background: #ff7800;
            transition: width 2s,height 2s,-webkit-transform 2s;
            text-align: center;
            align:center ;
        }
        div:hover{
            width: 300px;
            height: 300px;
            background-color: greenyellow;
            transform: rotate(180deg);
            text-align: right;
        }
    </style>
</head>
<body>
<div><br></br>哈哈哈</div>
</body>
</html>